package com.jiyun.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Transient;
import java.util.List;

/**
 * @projectName: day06_gengjiajun_p11
 * @package: com.jiyun.common.model
 * @className: Catalog
 * @author: 耿嘉军
 * @date: 2023/8/4 19:54
 * @version: 1.0
 */
@Data
@ToString
@TableName(value = "tree_node")
public class TreeNode {
    /**
     * 目录管理
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String paxu;
    private Integer pid;
    @Transient
    @TableField(exist = false)
    private List<TreeNode> children;


}
